<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Get order list</title>
<link rel="stylesheet" type="text/css" href="/Server/css/style.css">
<link rel="stylesheet"
	href="http://code.jquery.com/ui/1.11.0/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.1/jquery-ui.js"></script>
<script src="/Server/js/datepicker.js"></script>
</head>
<body>
<div class="wrapper">
<form action="/Server/OrderList" method="get">
<h1>Sort order's list</h1>
<select name="orders">
<option onclick="hideFields(true)"> all </option>
<option onclick="hideFields(true)"> mading </option>
<option onclick="hideFields(false)"> deleted </option>
<option onclick="hideFields(false)"> canceled </option>
<option onclick="hideFields(false)"> made </option>
</select>
  
<select name="date">
<option> fillingDate </option>
<option> deadlineDate </option>
<option> beginningDate </option>
<option> price </option>
</select>
<div id='hidden_fields'>
     <p> begin date <input type="text" class="datepicker" name="begin">
        end date <input  type="text" class="datepicker" name="end"></p>
</div>
<script type='text/javascript' src="/Server/js/extrafields.js"></script>
<input type="submit" value="sort">
<c:forEach var="line" items="${requestScope.answer}">
  <p><c:out value="${line}"/></p>
</c:forEach>
</form>
<form action="/Server/autorizationpages/MainPage.jsp">
<p><input  type="submit" value="return on the main page"/></p>
</form>
</div>
</body>
</html>